package com.avic.dal.mapper;

import com.avic.dal.condition.PageQueryMapVideoListCondition;
import com.avic.dal.model.MapVideo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author huangsheng on 2019/2/27
 */
@Mapper
public interface MapVideoMapper {

    /**
     * 新增数据
     *
     * @param mapVideo
     * @return
     */
    int insert(MapVideo mapVideo);

    /**
     * 列表数据
     *
     * @param pageQueryMapVideoListCondition
     * @return
     */
    List<MapVideo> itemList(PageQueryMapVideoListCondition pageQueryMapVideoListCondition);

    /**
     * 列表总数
     *
     * @param pageQueryMapVideoListCondition
     * @return
     */
    int itemTotalRecords(PageQueryMapVideoListCondition pageQueryMapVideoListCondition);


    int uploadUpdateVideo(MapVideo mapVideo);

    int uploadFailedUpdateVideo(MapVideo mapVideo);

    MapVideo queryMapVideoRecord(@Param("id") int id);
}
